let defaultActive = '/indexDefault'
let currentPage = 1;
let userName = ''
let scope = ''
let fenxiao_scope='17'
let kefu_scope='18'
let zuzhang_scope='19'
let meigong_scope='20'
let shencha_scope='21'
let chaoji_scope='32'
try {
    if(localStorage.userName){
        userName = localStorage.userName
    }
} catch (e){}

try {
    if(localStorage.scope){
        scope = localStorage.scope
    }
} catch (e){}
//默认当前页
try {
    if(localStorage.currentPage){
        currentPage = localStorage.currentPage
    }
} catch (e){}
//默认侧边栏被激活选项
try {
    if(localStorage.defaultActive){
        defaultActive = localStorage.defaultActive
    }
} catch (e){}

export default {
    defaultActive:defaultActive,
    baseUrl:'https://wechat.siemensgabor.com/admin-shop/zerg/public/index.php/api/v1/',
    //个人信息存储
    userName:userName,
    scope:scope,
    fenxiao_scope:fenxiao_scope,
    kefu_scope:kefu_scope,
    zuzhang_scope:zuzhang_scope,
    meigong_scope:meigong_scope,
    shencha_scope:shencha_scope,
    chaoji_scope:chaoji_scope,
    infoChange:false,
    activitedId:1,
    //商品列表当前页
    currentPage:currentPage,
    //侧边栏内容
    AllList:[
        {   
            id:0,
            type:'移动端/小程序',
            icon:'el-icon-location',
            scope:'20',
            
            class:[
                {title:'Banner设置',
                detail:[
                    {id:1,path:'/wechat/banner',title:'banner设置',scope:0},
                    {id:2,path:'/wechat/web',title:'活动页',scope:0},
                    {id:6,path:'/wechat/ProductList2',title:'商品列表2',scope:0}
                        ]
                },
                {title:'商品相关',
                detail:[
                    {id:1,path:'/wechat/Home',title:'首页定制',scope:0},
                    {id:3,path:'/wechat/ProductList',title:'商品列表',scope:0},
                    {id:4,path:'/wechat/ProductAdd',title:'新增商品',scope:0},
                    {id:5,path:'/wechat/productType',title:'新增商品类别',scope:0},
                        ]
                },
                
            ]                
        },
        {   
            id:1,
            type:'客户信息管理',
            icon:'el-icon-location',
            scope:'17',
            class:[
                {title:'客户操作',
                    detail:[
                        {id:1,path:'/CMS/CMSList',title:'长沙信息列表',scope:17},
                        {id:2,path:'/CMS/CMSAdd',title:'新增客户',scope:18},
                        {id:3,path:'/CMS/CMSUserChange',title:'修改个人密码',scope:17},
                        // {id:2,path:'/CMS/CMSChange',title:'修改客户',scope:18}
                        ]
                },
                {title:'检查选项',
                    detail:[
                        {id:3,path:'/CMS/CMSSettings-gifts',title:'礼品设置',scope:21},
                        {id:5,path:'/CMS/CMSSettings-news',title:'渠道设置',scope:21},
                        {id:6,path:'/CMS/CMSUserAdd',title:'管理员添加',scope:19},
                        ]
                },
            ]                
        }
    ]
}